package com.ficus.road.maintain.authority.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author xiawen yang
 * @date 2021/8/25 下午7:26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserVO {

    private String userId;

    @NotNull(message = "账号不能为空")
    private String account;

    @NotNull(message = "用户名不能为空")
    private String userName;

    private List<String> carIdList;

    private List<String> roles;

    @NotNull(message = "密码不能为空")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;

    private Long createTime;

    private Boolean isAdmin;
}
